package Prototype.PrototypeManager;

public class Client {
    public static void main(String[] args) {
        MyFruit fruit1,fruit2;
        fruit1 = new Apple();
        fruit2 = new Banana();

        MyFruitStore store = new MyFruitStore();

        store.add(1,fruit1);
        store.add(2,fruit2);
        store.add(3,new Apple());
        store.add(4,new Banana());


        MyFruit fruit = (MyFruit) store.get(3);
        fruit.display();


    }


}
